<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #box {
        border: 1px solid;
      }
    </style>
  </head>
  <body>
    <div id="box" style="border: 2px solid">hello box</div>
    <script>
      const box = document.getElementById("box");

      console.log(box.clientLeft);
      console.log(box.clientTop);
      console.log(box.offsetHeight, box.offsetWidth);
      console.log(box.clientHeight, box.clientWidth);
    </script>
  </body>
</html>
